import sys
import requests

url = "https://gyytz.market.alicloudapi.com/sms/smsSend"

appcode = '输入您的appcode'

smsSignId = "2e65b1bb3d054466b82f0c9d125465e2"
mobile = ""
templateId = "908e94ccf08b4476ba6c876d13f084ad"
param = '**code**:12345,**minute**:5'

# smsSignId（短信前缀）和templateId（短信模板），可登录国阳云控制台自助申请。参考文档：http://help.guoyangyun.com/Problem/Qm.html

data = {"mobile":mobile,"smsSignId":smsSignId,"templateId":templateId,"param":param}

headers = {"Content-Type":"application/x-www-form-urlencoded","Authorization":"APPCODE "+appcode}

response = requests.post(url, headers = headers, params = data)
print (response)